home *** CD-ROM | disk | FTP | other *** search
Wrap
llllcccchhhhssssttttrrrr((((3333GGGG)))) llllcccchhhhssssttttrrrr((((3333GGGG)))) NNNNAAAAMMMMEEEE cccchhhhaaaarrrrsssstttt,,,, llllcccchhhhssssttttrrrr - draws a string of characters FFFFOOOORRRRTTTTRRRRAAAANNNN 77777777 SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee cccchhhhaaaarrrrsssstttt((((ssssttttrrrr,,,, lllleeeennnnggggtttthhhh)))) cccchhhhaaaarrrraaaacccctttteeeerrrr****((((****)))) ssssttttrrrr iiiinnnntttteeeeggggeeeerrrr****4444 lllleeeennnnggggtttthhhh ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee llllcccchhhhssssttttrrrr((((ttttyyyyppppeeee,,,, ssssttttrrrr,,,, lllleeeennnnggggtttthhhh)))) iiiinnnntttteeeeggggeeeerrrr****4444 ttttyyyyppppeeee cccchhhhaaaarrrraaaacccctttteeeerrrr****((((****)))) ssssttttrrrr iiiinnnntttteeeeggggeeeerrrr****4444 lllleeeennnnggggtttthhhh PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS _s_t_r expects a pointer to the memory containing a sequence of character id's. _t_y_p_e expects one of the following symbolic constants defined in <_g_l/_f_g_l._h>: Each character id is represented by a single, unsigned byte. STRB Each character id is represented by two, consecutive unsigned bytes. STR2B Each character id is represented by three, consecutive unsigned bytes. STR3B Each character id is represented by four, consecutive unsigned bytes. STR4B Each character id is represented by a 16-bit unsigned integer. STR16 Each character id is represented by a 32-bit unsigned integer. STR32 _l_e_n_g_t_h expects the number of characters in the string. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN cccchhhhaaaarrrrsssstttt and llllcccchhhhssssttttrrrr draw a string of text using the current raster font, color and writemask. The first character in the string is drawn at the current character position. After each character is drawn, the character's x-pixel spacing value is added to the x-coordinate of the current character position, and if defined using ddddeeeeffffllllffffoooo, the character's y-pixel spacing value is added to the y-coordinate. For strings displayed with llllcccchhhhssssttttrrrr sequences of character id's are converted to character values using the following formulas for the _i-th character in unsigned byte-string _s: STRB _s[_i] STR2B (_s[2*_i]*256) + _s[2*_i+1] PPPPaaaaggggeeee 1111 llllcccchhhhssssttttrrrr((((3333GGGG)))) llllcccchhhhssssttttrrrr((((3333GGGG)))) STR3B ((_s[3*_i]*256) + _s[3*_i+1])*256 + _s[3*_i+2] STR4B (((_s[4*_i]*256) + _s[4*_i+1])*256) + _s[4*_i+2])*256 + _s[4*_i+3] For types SSSSTTTTRRRR11116666 and SSSSTTTTRRRR33332222, integer character id's correspond directly to character values. The call cccchhhhaaaarrrrssssttttrrrr((((ssssttttrrrr)))) is equivalent in all cases to the call llllcccchhhhaaaarrrrssssttttrrrr((((SSSSTTTTRRRR____BBBB,,,,ssssttttrrrr)))). cccchhhhaaaarrrrsssstttt and llllcccchhhhssssttttrrrr may be used with raster fonts defined by either ddddeeeeffffrrrraaaassss or ddddeeeeffffllllffffoooo. Characters not defined in the current raster font are ignored. SSSSEEEEEEEE AAAALLLLSSSSOOOO charst, cmov, deflfo, defras, font, lstwid, strwid, getcpo PPPPaaaaggggeeee 2222